#ifndef DTWENTYMODEL_H
#define DTWENTYMODEL_H


#include "dtwenty_global.h"
#include "campaign.h"


#include <itemtreemodel.h>


class DTWENTYSHARED_EXPORT DTwentyModel : public ItemTreeModel
{
    Q_OBJECT

public:

    DTwentyModel(QObject *parent = 0);
    DTwentyModel(Campaign* campaign, QObject *parent = 0);

    QString campaignName() const;
    void setCampaignName(const QString& name);

    virtual bool insertRows(int row, int count, const QModelIndex &parent);
    virtual bool removeRows(int row, int count, const QModelIndex &parent);


protected:

    Campaign* campaign() const;

};



#endif // DTWENTYMODEL_H
